package club.banyuan.phoy.cake;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/24 上午9:28
 */
public class ReadyMadeCake extends Cake{
    private double quantity;

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public ReadyMadeCake(int n, double r, double quantity){
        super(n,r);
        this.quantity=quantity;
    }

    @Override
    public double calcPrice() {
        return price*quantity;
    }
}
